package cn.zzz.openplatform.txlbs.model.weather;

import cn.zzz.openplatform.txlbs.model.TxlbsOpenApiResponse;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

/**
 * 腾讯位置服务 实时天气 响应参数
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
public class TxlbsWeatherNowResponse extends TxlbsOpenApiResponse {
    private TxlbsWeatherNowResult result;

    /**
     * 实时天气信息数组
     */
    @Data
    public static class TxlbsWeatherNowResult {
        private List<RealtimeItem> realtime;
    }

    /**
     * 实时天气信息项
     */
    @Data
    public static class RealtimeItem {
        /** 省份 */
        private String province;

        /** 市 */
        private String city;

        /** 区县 */
        private String district;

        /** 区划编码 */
        private Integer adcode;

        /** 更新时间 */
        private String update_time;

        /** 天气信息 */
        private TxlbsWeatherFutureResponse.TxlbsWeatherInfo infos;
    }

}

